package com.xyoto.community.enums;

/**
 * 动态类枚举
 *
 * @author Administrator
 */
public enum DynamicEnum implements Code {

    DYNAMIC_PICTURE_ADD_FAILED(1001, "动态图片添加失败"),
    DYNAMIC_ADD_ERROR(1002, "动态添加失败"),
    DYNAMIC_COMMENT_FAILED(1003, "动态评论失败"),
    DYNAMIC_REPLY_FAILED(1004, "动态回复失败"),
    DYNAMIC_IS_NULL(1005, "动态查询失败"),
    DYNAMIC_DELETED(1006, "该动态已被删除"),
    DYNAMIC_NOT_EXIST(1007, "该动态不存在"),
    DYNAMIC_FORWARD_ADD_FAILED(1008, "动态转发失败"),
    DYNAMIC_DELETE_FAILED(1009, "动态删除失败"),
    DYNAMIC_ID_ERROR(1010, "动态id不可用"),
    DYNAMIC_ADD_PICTURE_FAIL(1011, "动态图片添加失败"),
    DYNAMIC_UPDATE_FAIL(1012, "动态修改失败"),
    DYNAMIC_UPDATE_PICTURE_FAIL(1013, "动态图片修改失败"),
    DYNAMIC_HOT_ADD_FAIL(1014, "动态热度添加失败"),
    DELETE_DYNAMIC_LOVE_FAILED(1015,"取消动态点赞失败"),
    HOT_DYNAMIC_UPDATE_FAIL(1016,"更新热门动态失败"),
    DYNAMIC_COMMENT_ID_ERROR(1017,"动态评论id不可用"),
    DELETE_DYNAMIC_COMMENT_LOVE_FAILED(1018,"取消动态点赞失败"),
    DYNAMIC_COMMENT_REPLY_NOT_EXIST(1019, "回复不存在"),
    DYNAMIC_COMMENT_REPLY_DELETED(1020, "动态评论回复不存在"),
    DELETE_DYNAMIC_COMMENT_REPLY_LOVE_FAILED(2001,"取消动态回复点赞失败"),
    DYNAMIC_COMMENT_REPLY_ID_ERROR(2002,"动态评论回复id不可用"),
    DYNAMIC_LOVE_IS_DELETED(2003,"动态点赞已被取消"),
    DYNAMIC_COMMENT_LOVE_IS_DELETED(2004,"动态评论点赞已取消"),
    DYNAMIC_NOT_LOVE(2005,"动态未点赞"),
    DYNAMIC_COMMENT_NOT_LOVE(2006,"动态评论未点赞"),
    DYNAMIC_COMMENT_REPLY_NOT_LOVE(2007,"动态评论回复未点赞"),
    DYNAMIC_COMMENT_REPLY_LOVE_IS_DELETED(2008,"动态评论回复点赞已取消"),
    DYNAMIC_ADD_TOPIC_NOT_NULL(2009, "新增动态所属话题不存在"),
    DYNAMIC_CONTENT_NOT_NULL(2010, "动态内容不能为空"),
    DYNAMIC_UPDATE_NOT_PER(2011, "动态修改无权限"),
    LOVE_IS_REMOVE(2012,"已取消点赞"),
    REPLY_DELETED_FAILED(2013,"回复删除失败"),
    YOU_NOT_POWER(2014,"你无权限"),
    DYNAMIC_COMMENT_DELETED_FAILED(2015,"动态评论删除失败"),
    DYNAMIC_MARK_SECRET_FAIL(2016,"动态设置私密失败"),
    DYNAMIC_ALREADY_FORWARD(2017,"已经转发过该动态"),
    DYNAMIC_IS_PERSONAL(2018,"暂无权限查看"),
    ;

    private int code;
    private String msg;

    DynamicEnum(int code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    @Override
    public int code() {
        return this.code;
    }

    @Override
    public String msg() {
        return this.msg;
    }
}
